package com.bill.concurrency.example.threadLocal;

public class RequestHolder<T> {
    private final  ThreadLocal<T> holder=new ThreadLocal<>();

    public <T> T get(){
        return (T) holder.get();
    }

    public void add(T t){
        holder.set(t);
    }

    public  void remove(){
        holder.remove();
    }
}
